import Vue from 'vue'
import Router from 'vue-router'
import Library from '@/components/library'


Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/library',
      name: 'Library',
      component: Library
    },
    // 匹配ip+port localhost:8080
    {
      path: '/',
      redirect: '/library'
    },
    // 匹配异常路由 /zqf123xxx
    {
      path: '*',
      redirect: '/library'
    }
  ]
})
